package attend

import (
	"encoding/xml"

	"awfan.cn/implement/member"
	"awfan.cn/implement/voting"
	"gopkg.in/mgo.v2/bson"
)

type ATTENDS_XML struct {
	XMLName xml.Name     `xml:"attends"`
	Version string       `xml:"version,attr"`
	Attends []ATTEND_XML `xml:"attend"`
}

type ATTEND_XML struct {
	Id      bson.ObjectId     `xml:"id" bson:"_id" json:"-"`
	Voting  voting.VOTING_XML `xml:"voting"`
	Account member.MEMBER_XML `xml:"account"`

	Created_time string `xml:"created_time"`
}
